]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Set this._notificationRemoved to false in _hideNotificationComplete()
authorMarina Zhurakhinskaya <marinaz@redhat.com>
Thu, 25 Feb 2010 21:19:11 +0000 (16:19 -0500)
committerMarina Zhurakhinskaya <marinaz@redhat.com>
Mon, 8 Mar 2010 21:39:52 +0000 (16:39 -0500)
We used to set this._notificationRemoved to false in _hideNotification().
However, the user focusing on the associated application can result in the
source being removed while the notification is hiding, in which case
this._notificationRemoved was set to true and never unset. This resulted in
the next notification only showing up briefly and hiding. Moving setting
this._notificationRemoved to false to _hideNotificationComplete() fixes this
behavior.

https://bugzilla.gnome.org/show_bug.cgi?id=611122

js/ui/messageTray.js

index fe7a081661fedb7388f06c4fe306a9734944a847..63d0d5dbd26dc671758ae4f56beb0df1fc452969 100644 (file)
@@ -696,7 +696,6 @@ MessageTray.prototype = {
     },
 
     _hideNotification: function() {
-        this._notificationRemoved = false;
         this._notification.popIn();
 
         this._tween(this._notificationBin, "_notificationState", State.HIDDEN,
@@ -710,6 +709,7 @@ MessageTray.prototype = {
     },
 
     _hideNotificationCompleted: function() {
+        this._notificationRemoved = false;
         this._notificationBin.hide();
         this._notificationBin.child = null;
         this._notification = null;